﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace gChartSharp
{
    public class EncoderFactory
    {
        public static IEncoder GetEncoderByType(EncodingType encType)
        {
            switch (encType)
            {
                case EncodingType.Text:
                    return new TextEncoder();
                case EncodingType.Simple:
                    return new SimpleEncoder();
                case EncodingType.Extended:
                    return new ExtendedEncoder();
                default:
                    return new TextEncoder();
            }
        }
    }
}
